import java.util.ArrayList;
import java.util.List;
// 将需要删除的字符除去后把不需要的字符加到数据表中打印
public class cvte {
    public static List<Character> func(String str, String str2) {
//        String str = "welcome to cvte";
//        String str2 = "come";
        List<Character> list = new ArrayList<>();
        for (int i = 0; i < str.length(); i++) {
            char ch = str.charAt(i);
            if (!str2.contains(ch + "")) {
                list.add(ch);
            }
        }
        return list;
    }

    public static void main(String[] args) {
        ArrayList<Integer> list = new ArrayList<>();
//        func("welcome to cvte","come");
        List<Character> ret = func("welcome to cvte","come");
        for (char ch : ret){ //遍历ret中的所有字符将其转化
            System.out.print(ch);
        }
    }
}
